home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-04-13 | 1.3 KB | 32 lines | [TEXT/ToyS] |
- global rf, pict1, arrow, cicn1, cicn2, cicn3, icon1, icon2
-
- set rf to res open (choose file with prompt "Where is ╥Picts & Icons╙?" of type "rsrc")
- try
- set pict1 to res get rf type "PICT" id 130
- set arrow to res get rf type "cicn" id 129
- set cicn1 to res get rf type "cicn" id 1000
- set cicn2 to res get rf type "cicn" id 1010
- set cicn3 to res get rf type "cicn" id 1020
- set icon1 to res get rf type "ICON" id 128
- set icon2 to res get rf type "ICON" id 129
- on error number n
- res close rf
- error number n
- end try
- res close rf
-
- set dItems to [┬
- {class:push button, bounds:[290, 300, 350, 320], name:"OK"}, ┬
- {class:push button, bounds:[210, 300, 270, 320], name:"Cancel"}, ┬
- {class:pict, bounds:[20, 20, 241, 241], contents:pict1}, ┬
- {class:icon, bounds:[20, 57, 20 + 61, 57 + 34], contents:arrow}, ┬
- {class:icon, bounds:[40, 200, 72, 232], contents:1}, ┬
- {class:icon, bounds:[110, 200, 142, 232], contents:2}, ┬
- {class:icon, bounds:[40, 250, 72, 282], contents:icon1}, ┬
- {class:icon, bounds:[110, 250, 142, 282], contents:icon2}, ┬
- {class:icon, bounds:[200, 200, 240, 240], contents:cicn1}, ┬
- {class:icon, bounds:[250, 200, 290, 240], contents:cicn2}, ┬
- {class:icon, bounds:[300, 200, 340, 240], contents:cicn3} ┬
- ]
- dd auto dialog {size:[360, 330], contents:dItems, name:┬
- "Pict & Icon Resources", style:movable modal} with greyscale